package ldh.im.fxbase.data.event;

import ldh.im.dto.enums.ChatType;

public class AvInvite {

    private String fromUserId;
    private String userId;
    private String groupId;
    private ChatType byteType;

    public AvInvite(String fromUserId, String userId, ChatType byteType, String groupId) {
        this.fromUserId = fromUserId;
        this.userId = userId;
        this.byteType = byteType;
        this.groupId = groupId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public ChatType getByteType() {
        return byteType;
    }

    public void setByteType(ChatType byteType) {
        this.byteType = byteType;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public boolean isAudio() {
        return byteType == ChatType.audio;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }
}
